<form action="/backend/client/records" method="get" class="filter">
    <label for="market">所属市场领域</label>
    <select name="market">
	<option value="0">全部</option>
	<?php foreach ($markets as $market): ?>
    	<option value="<?php echo $market->id; ?>">
		<?php echo $market->menu_zh; ?> / <?php echo $market->menu_fr; ?> / <?php echo $market->menu_en; ?> 
    	</option>
	<?php endforeach; ?>
    </select>

    <label for="city">所属城市</label>
	<select name="city">
	    <option value="0">全部</option>
	    <?php foreach ($cities as $city): ?>
    	    <option value="<?php echo $city->id; ?>">
		    <?php echo $city->name_zh; ?> / <?php echo $city->name_fr; ?> / <?php echo $city->name_en; ?> 
    	    </option>
	    <?php endforeach; ?>
	</select>
    <label for="name">名称</label>
    <input type="text" class="text" name="name" autocomplete="off"/>
    <label for="created_at">发布时间</label>
    <input type="text" class="text datetime" name="start" autocomplete="off"/> 到 <input type="text" class="text datetime" name="end" autocomplete="off"/>
    <input type="submit" class="submit" value="检索"/>
</form>
<ul class="button">
    <li><a href="/backend/client/add" class="add">添加</a></li>
</ul>
<table class="records">
    <thead>
	<tr>
	    <th><input type="checkbox" value="0" class="select-all"/></th>
	    <th><a href="javascript:void(0);">所属市场领域</a></th>
	    <th><a href="javascript:void(0);">所属城市</a></th>
	    <th><a href="javascript:void(0);">客户名称（中文）</a></th>
	    <th><a href="javascript:void(0);">客户名称（中文）</a></th>
	    <th><a href="javascript:void(0);">客户名称（中文）</a></th>
	    <th><a href="javascript:void(0);">创建时间</a></th>
	    <th>操作</th>
	</tr>
    </thead>
    <tfoot><tr><td colspan="8"></td></tr></tfoot>
    <tbody><tr><td colspan="8"></td></tr></tbody>
</table>

<script type="text/x-jquery-tmpl" id="list-template">
    <tr>
	<td><input type="checkbox" value="${id}"/></td>
	<td>${market_menu}</td>
	<td>${city_name}</td>
	<td>${name_zh}</td>
	<td>${name_fr}</td>
	<td>${name_en}</td>
	<td>${created_at}</td>
	<td class="action">
	    <a href="/backend/client/edit/${id}" class="edit" title="编辑">
		<img src="/assets/img/edit.png" alt="编辑"/>
	    </a>
	    <a href="javascript:void(0);" class="delete" title="删除">
		<img src="/assets/img/delete.png" alt="删除"/>
	    </a>
	</td>
    </tr>
</script>
<script type="text/x-jquery-tmpl" id="none-template">
    <tr><td colspan="8" style="text-align: center;">没有搜索到结果。</td></tr>
</script>